
/**
*  @file       xint.h
*  @brief      外部中断库配置
*  @author     Z B T
*  @version	   LTE
*  @date       2015-10
*/

#ifndef __XINT__H
#define __XINT__H

#include "config.h"

enum XINT_N
{
	xint_0, xint_1,
};

enum INT_MODE
{
	lowLevel, fallEdge,
};

enum INT_POLITY
{
	lowPolity, highPolity,
};

struct XINT_INIT
{
	enum INT_MODE 		intMode;
	enum INT_POLITY		intPolity;
	uint_8				intInterrupt;
};

/**< 外部中断初始化 */
uint_8 xint_inilize(enum XINT_N xint_x, struct XINT_INIT INTx);

#endif